<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>英语精听播放器</title>
    <link rel="stylesheet" href="./css/index.css">
    <script src="./js/index.js"></script>

</head>

<body onload="onLoad()">
    <div class="header">
        <h2>英语精听播放器</h2>
    </div>

    <div class="file-selector" id="fileSelector">
        <button id="selectFolderBtn">选择文件夹</button>
        <input type="file" id="folderInput" webkitdirectory directory multiple style="display: none;">
    </div>

    <div class="container" id="mainContainer">
        <div class="sidebar" id="sidebar" style="display: none;">
            <h3>播放列表</h3>
            <ul class="song-list" id="songList"></ul>
        </div>

        <div class="main-content" id="mainContent" style="display: none;">
            <div class="lyrics-container" id="lyricsContainer"></div>

            <div class="player-controls">
                <div class="progress-container">
                    <progress id="progressBar" value="0" max="100"></progress>
                    <div class="time-display">
                        <span id="currentTime">0:00</span>
                        <span id="duration">0:00</span>
                    </div>
                </div>
                <div class="controls">
                    <button id="prevBtn">上一首</button>
                    <button id="playPauseBtn">播放</button>
                    <button id="nextBtn">下一首</button>
                    <div class="volume-control">
                        <span>音量:</span>
                        <input type="range" id="volumeControl" min="0" max="1" step="0.1" value="0.5">
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

</html>